/**
 @author: zhulizhe
 @date: 2020-05-23 10:07:57
 @Email：345841634@qq.com
 @url：https://github.com/lovecrossyou
 */

import React, {useState, useEffect} from 'react';
import {AppRegistry} from 'react-native';
import {Provider} from 'mobx-react';
import stores from '@/store';
import {name as appName} from './app.json';
import Home from '@/pages/home';
import LoadingView from "@/components/loading-view";
// console.log = function (){};
class App extends React.Component {
  render() {
        return (
            <Provider rootStore={stores}>
                <Home/>
                <LoadingView ref={(ref) => {
                    global.mLoadingComponentRef = ref;
                }}/>
            </Provider>
        );
    }
}

AppRegistry.registerComponent(appName, () => App);
